package com.sky.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseEntity  implements Serializable {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
//
//    @Schema(description = "创建人ID")
//    @JsonIgnore
//    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

//    @Schema(description = "修改人ID")
//    @JsonIgnore
//    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

//    @Schema(description = "创建时间")
//    @JsonIgnore
//    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

//    @Schema(description = "更新时间")
//    @JsonIgnore
//    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}